package org.feuyeux.quarkus.hello;

import org.eclipse.microprofile.config.inject.ConfigProperty;

import javax.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class GreetingService {
    @ConfigProperty(name = "greeting")
    private String greeting;

    public String politeHello(String name) {
        return greeting + " " + name;
    }
}